/*
*********************************************************************************************************
*                                            EXAMPLE CODE
*
*               This file is provided as an example on how to use Micrium products.
*
*               Please feel free to use any application code labeled as 'EXAMPLE CODE' in
*               your application products.  Example code may be used as is, in whole or in
*               part, or may be used as a reference only. This file can be modified as
*               required to meet the end-product requirements.
*
*               Please help us continue to provide the Embedded community with the finest
*               software available.  Your honesty is greatly appreciated.
*
*               You can find our product's user manual, API reference, release notes and
*               more information at https://doc.micrium.com.
*               You can contact us at www.micrium.com.
*********************************************************************************************************
*/

#ifndef  APP_CFG_MODULE_PRESENT
#define  APP_CFG_MODULE_PRESENT


/*
*********************************************************************************************************
*                                       MODULE ENABLE / DISABLE
*********************************************************************************************************
*/


/*
*********************************************************************************************************
*                                            TASK PRIORITIES
*********************************************************************************************************
*/

#define  APP_CFG_TASK_START_PRIO                       2u
#define  APP_CFG_TASK_1_PRIO                           3u
#define  APP_CFG_TASK_2_PRIO                           4u

/*
*********************************************************************************************************
*                                            TASK STACK SIZES
*********************************************************************************************************
*/

#define  APP_CFG_TASK_START_STK_SIZE                   128u
#define  APP_CFG_TASK_BLINKY_STK_SIZE                  128u
#define  APP_CFG_TASK_1_STK_SIZE                       512u
#define  APP_CFG_TASK_2_STK_SIZE                       512u

/*
*********************************************************************************************************
*                                     TRACE / DEBUG CONFIGURATION
*********************************************************************************************************
*/

#ifndef  TRACE_LEVEL_OFF
#define  TRACE_LEVEL_OFF                               0
#endif                                                 
                                                       
#ifndef  TRACE_LEVEL_INFO                              
#define  TRACE_LEVEL_INFO                              1
#endif                                                 
                                                       
#ifndef  TRACE_LEVEL_DBG                               
#define  TRACE_LEVEL_DBG                               2
#endif                                                 
                                                       
#define  APP_CFG_TRACE_LEVEL                           TRACE_LEVEL_OFF
#define  APP_CFG_TRACE                                 printf
                                                       
#define  BSP_CFG_TRACE_LEVEL                           TRACE_LEVEL_OFF
#define  BSP_CFG_TRACE                                 printf
                                                       
#define  APP_TRACE_INFO(x)                             ((APP_CFG_TRACE_LEVEL >= TRACE_LEVEL_INFO)  ? (void)(APP_CFG_TRACE x) : (void)0)
#define  APP_TRACE_DBG(x)                              ((APP_CFG_TRACE_LEVEL >= TRACE_LEVEL_DBG)   ? (void)(APP_CFG_TRACE x) : (void)0)
                                                       
#define  BSP_TRACE_INFO(x)                             ((BSP_CFG_TRACE_LEVEL  >= TRACE_LEVEL_INFO) ? (void)(BSP_CFG_TRACE x) : (void)0)
#define  BSP_TRACE_DBG(x)                              ((BSP_CFG_TRACE_LEVEL  >= TRACE_LEVEL_DBG)  ? (void)(BSP_CFG_TRACE x) : (void)0)

#endif


